package org.example.project

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import org.example.project.ui.BottomSheetDemo
import org.example.project.ui.TencentMapDrawerPreview
import org.jetbrains.compose.ui.tooling.preview.Preview

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContent {
            BottomSheetDemo()
            Box(
                Modifier .background(color = androidx.compose.ui.graphics.Color.Gray)
            ){
        TencentMapDrawerPreview()
            }
        }
    }
}

@Preview
@Composable
fun AppAndroidPreview() {
    BottomSheetDemo()
}
